<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>在此处插入标题</title>
</head>
<body>
<h1>所有cookie</h1>
<%
 	Cookie[]cr=request.getCookies();
 	for(int i=0;cr!=null&&i<cr.length;i++){
 		out.print("<h1>"+cr[i].getName()+"="+cr[i].getValue()+"</h1>");
 	}
 %>
</body>
</html>